import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '',
    dataIndex: 'loginTime',
    width: 200,
  },
  {
    title: '登录Ip',
    dataIndex: 'loginIp',
    width: 200,
  },
  {
    title: '登录设备',
    dataIndex: 'loginAgent',
    width: 200,
  },
  {
    title: '登录次数',
    dataIndex: 'loginNums',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'userId',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'account',
    width: 200,
  },
  {
    title: '',
    dataIndex: 'accountType',
    width: 200,
  },
  {
    title: '账号ID',
    dataIndex: 'accountId',
    width: 200,
  },
  {
    title: '账号域',
    dataIndex: 'domain',
    width: 200,
  },
];

export const searchFormSchema: FormSchema[] = [];

export const formSchema: FormSchema[] = [
  {
    label: '',
    field: 'loginTime',
    component: 'Input',
    required: true,
  },
  {
    label: '登录Ip',
    field: 'loginIp',
    component: 'Input',
    required: true,
  },
  {
    label: '登录设备',
    field: 'loginAgent',
    component: 'Input',
    required: true,
  },
  {
    label: '登录次数',
    field: 'loginNums',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'userId',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'account',
    component: 'Input',
    required: true,
  },
  {
    label: '',
    field: 'accountType',
    component: 'Input',
    required: true,
  },
  {
    label: '账号ID',
    field: 'accountId',
    component: 'Input',
    required: true,
  },
  {
    label: '账号域',
    field: 'domain',
    component: 'Input',
    required: true,
  },
];
